export const formatDate = (dateString) => {
  const date = new Date(dateString)
  return date.toLocaleDateString('zh-CN', {
    month: 'long',
    day: 'numeric',
    hour: '2-digit',
    minute: '2-digit'
  })
}

export const getMoodEmoji = (mood) => {
  const moods = ['😞', '😕', '😐', '😊', '😃']
  return moods[parseInt(mood) - 1] || '😐'
}

export const getIntensityColor = (intensity) => {
  const colors = ['blue', 'green', 'yellow', 'orange', 'red']
  return colors[parseInt(intensity) - 1] || 'blue'
}